home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
8_8.lha
/
8_8
/
main.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
530b
|
31 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
include "8_8a1.h"
include "8_8_cons.c"
include "8_8_stat.c"
include "8_8_des.c"
include "8_8_op.c"
include <stream.h>
include <ctype.h>
ain()
randomchars r("tst.data");
while (cin)
{
cout << "\nIndex: ";
long i = 0;
cin >> i;
int c = r[i];
cout << "i=" << i << "\n";
cout << "c=" << c << ", " << oct(c);
if (isprint(c))
cout << ", " << chr(c);
cout << "\n";
}
return 0;